package com.liurong.quartz.test;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
	private static volatile boolean running = true;

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("classpath:applicationContext.xml");
		ctx.start();
		synchronized (Main.class) {
			while (running) {
				try {
					Main.class.wait();
				} catch (Throwable e) {
				}
			}
		}
		ctx.close();
	}
}
